package com.park.service.impl.log;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.log.LoginLogModel;
import com.park.client.service.log.LoginLogService;
import com.park.dao.log.LoginLogMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("loginLogService")
public class LoginLogServiceImpl extends BaseServiceImpl<LoginLogModel> implements LoginLogService {
	
	@Autowired
	private LoginLogMapper loginLogMapper;

	@Override
	public boolean insert(LoginLogModel record) {
		return loginLogMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return loginLogMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(LoginLogModel record) {
		return loginLogMapper.insertSelective(record)==1;
	}
	@Override
	public boolean deleteBatch(Integer[] ids) {
		return loginLogMapper.deleteBatch(ids)>0;
	}
	@Override
	public List<LoginLogModel> selectPagination(LoginLogModel t) {
		return loginLogMapper.selectPagination(t);
	}
	@Override
	public Integer selectTotal(LoginLogModel t) {
		return loginLogMapper.selectTotal(t);
	}
	

}
